<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>update news</title>
    <link th:href="@{/static/css/layui/layui.css}" rel="stylesheet">
    <link th:href="@{/static/css/style.css}" rel="stylesheet">
    <link th:href="@{/static/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/static/css/layer/layer.css}" rel="stylesheet">
    <link th:href="@{/static/css/layui/admin.css}" rel="stylesheet">
    <link th:href="@{/static/css/element-ui.2.13.0.css}" rel="stylesheet">
    <link th:href="@{/static/css/font-awesome.min.css}" rel="stylesheet">
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight" id="app">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="newsForm">
                        <input id="id" name="id" type="hidden" th:value="${news.id}">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">新闻标题：</label>
                            <div class="col-sm-8">
                                <input id="title" name="title" class="form-control" type="text" th:value="${news.title}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">新闻内容：</label>
                            <div class="col-sm-8">
                                <input id="description" name="description" class="form-control" type="text" th:value="${news.description}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">新闻发生地址：</label>
                            <div class="col-sm-8">
                                <input id="address" name="address" class="form-control" type="text" th:value="${news.address}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">新闻发生时间：</label>
                            <div class="col-sm-8">
                                <input id="newsTime" name="newsTime" type="hidden" th:value="${news.newsTime}">
                                <el-date-picker id="newsTimeDatePicker" v-model="newsTime"
                                                type="date"
                                                value-format="yyyy-MM-dd HH:mm:ss"
                                                placeholder="选择时间">
                                </el-date-picker>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script th:inline="javascript">
    var context = [[${application.ctx}]];
</script>
<script th:src="@{/static/js/jquery.1.12.4.min.js}"></script>
<script th:src="@{/static/js/sha256.js}"></script>
<script th:src="@{/static/js/jquery.validate.min.js}"></script>
<script th:src="@{/static/js/layui/layui.js}"></script>
<script th:src="@{/static/js/layui/lay/modules/layer.js}"></script>
<script th:src="@{/static/js/vue.2.6.11.js}"></script>
<script th:src="@{/static/js/element-ui.2.13.0.js}"></script>
<script th:src="@{/static/js/modules/news/updateNews.js}"></script>
</body>
</html>